package com.usermanage.Mapping;

import com.usermanage.beanParam.SequenceBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

/**
 * Created by  on 2018/9/28
 */
@Repository("sequenceMapping")
public interface SequenceMapping extends JpaRepository<SequenceBean, Integer> {


    @Query(value = "SELECT NEXTVAL(?1)",nativeQuery = true)
    String getSequenceNum(String sequence);


}
